deviceblock {
    .block {
        position: relative;
        width: 29vw;
        height: 32vw;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-between;
        background-color: #fff;
        .block-img {
            height: 53%;
        }
        .block-text {
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            span {
                font-size: 14px;
            }
        }
        .h-line {
            width: 100%;
            height: 1px;
            background-color: #EBEBEB;
            margin-top: 2px;
        }
        .block-footer {
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            height: 25%;
            .state {
                display: flex;
                align-items: center;
                .blue {
                    color: #389BEE;
                }
                .gray {
                    color: #CCCCCD;
                }
            }
            span {
                margin-left: 5px;
                font-size: 12px;
            }
            .switch {
                display: flex;
                align-items: center;
                height: 100%;
                padding-right: 5px;
                padding-left: 10px;
                .circle {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    width: 20px;
                    height: 20px;
                    background-color: #389BEE;
                    color: #fff;
                    font-size: 12px;
                }
                .turn-off {
                    background-color: rgb(150, 150, 150);
                }
                img {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }
    .block2 {
        position: relative; // width: 95vw;
        height: 17vw;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        // padding: 12px;
        background-color: #fff;
        .offline-box{
            position: absolute;
            width: 100%;
            height: 17vw;
            background-color: rgba(0, 0, 0, 0.2);
            z-index: 2;
            border-radius: 5px;
        }
        .img-box {
            width: 23%;
            padding-left: 12px;
            .mode {
                position: absolute;
                top: 3px;
                left: 5px;
                width: 20px;
                height: 20px;
            }
        }
        .text-box {
            padding-left: 9%;
            width: 65%;
            height: 100%;
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            justify-content: center;
            .name {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                font-size: 18px;
                max-width: 100%;
            }
            .text {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                margin-top: 2px;
                color: #389BEE;
                font-size: 15px;
                max-width: 100%;
            }
        }
        .toggle-box {
            position: absolute;
            right: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #959595;
            border-radius: 13.5px;
            width: 44px;
            height: 25px;
            font-size: 12px;
            transition: all 0.3s;
            .toggle-inner {
                border-radius: 50%;
                background: #fff;
                height: 21px;
                width: 21px;
                opacity: 0;
                position: absolute;
                // transition: all 0.3s;
            }
            .on {
                opacity: 1;
                right: 2px !important;
            }
            .off {
                opacity: 1;
                right: calc( 100% - 23px);
            }
            // .waiting{
            //     right: calc( 50% - 10.5px);
            // }
        }
        @keyframes breath {
            0% {
                opacity: 0.3;
            }
            100% {
                opacity: 1;
            }
        }
        .toggle-off {
            background-color: #959595 !important;
        }
        .toggle-on {
            background-color: #389BEE !important;
        }
        .toggle-wait {
            animation: breath 1000ms infinite ease-in-out alternate;
        }
    }
}